<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.Plots.Function2D Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_vect_sharp_1_1_plots_1_1_function2_d.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_vect_sharp_1_1_plots_1_1_function2_d-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.Plots.Function2D Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>A plot element that plots a function of two variables.   
 <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for VectSharp.Plots.Function2D:</div>
<div class="dyncontent">
<div class="center"><img src="class_vect_sharp_1_1_plots_1_1_function2_d__inherit__graph.png" border="0" usemap="#a_vect_sharp_8_plots_8_function2_d_inherit__map" alt="Inheritance graph"/></div>
<map name="a_vect_sharp_8_plots_8_function2_d_inherit__map" id="a_vect_sharp_8_plots_8_function2_d_inherit__map">
<area shape="rect" title="A plot element that plots a function of two variables." alt="" coords="5,79,192,104"/>
<area shape="rect" href="interface_vect_sharp_1_1_plots_1_1_i_plot_element.html" title="Represents a plot element." alt="" coords="51,5,147,31"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a92e7e5a1b16806e2575473fd772ffc61"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a92e7e5a1b16806e2575473fd772ffc61">PlotType</a> </td></tr>
<tr class="memdesc:a92e7e5a1b16806e2575473fd772ffc61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Describes the kind of plots that can be produced.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a92e7e5a1b16806e2575473fd772ffc61">More...</a><br /></td></tr>
<tr class="separator:a92e7e5a1b16806e2575473fd772ffc61"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac0f1065ddd45511d4ebd8dcbb7ea14b0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#ac0f1065ddd45511d4ebd8dcbb7ea14b0">Function2D</a> (<a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html">Function2DGrid</a> function, <a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_continuous_invertible_coordinate_system.html">IContinuousInvertibleCoordinateSystem</a> coordinateSystem)</td></tr>
<tr class="memdesc:ac0f1065ddd45511d4ebd8dcbb7ea14b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html" title="A plot element that plots a function of two variables.">Function2D</a> instance.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#ac0f1065ddd45511d4ebd8dcbb7ea14b0">More...</a><br /></td></tr>
<tr class="separator:ac0f1065ddd45511d4ebd8dcbb7ea14b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0f3cfa2f0a882b2a17d27ac67d67435"><td class="memItemLeft" align="right" valign="top">unsafe void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#ad0f3cfa2f0a882b2a17d27ac67d67435">Plot</a> (<a class="el" href="class_vect_sharp_1_1_graphics.html">Graphics</a> target)</td></tr>
<tr class="memdesc:ad0f3cfa2f0a882b2a17d27ac67d67435"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw the plot element on the specified <em>target</em> &amp;#160;<a class="el" href="class_vect_sharp_1_1_graphics.html" title="Represents an abstract drawing surface.">Graphics</a>. <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>The <a class="el" href="class_vect_sharp_1_1_graphics.html" title="Represents an abstract drawing surface.">Graphics</a> on which to draw.</td></tr>
  </table>
  </dd>
</dl>
  <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#ad0f3cfa2f0a882b2a17d27ac67d67435">More...</a><br /></td></tr>
<tr class="separator:ad0f3cfa2f0a882b2a17d27ac67d67435"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a245cbde8d8059a46690bd3b32b1cf903"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_plot_element.html#a245cbde8d8059a46690bd3b32b1cf903">Plot</a> (<a class="el" href="class_vect_sharp_1_1_graphics.html">Graphics</a> target)</td></tr>
<tr class="memdesc:a245cbde8d8059a46690bd3b32b1cf903"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw the plot element on the specified <em>target</em> &amp;#160;<a class="el" href="class_vect_sharp_1_1_graphics.html" title="Represents an abstract drawing surface.">Graphics</a>.   <a href="interface_vect_sharp_1_1_plots_1_1_i_plot_element.html#a245cbde8d8059a46690bd3b32b1cf903">More...</a><br /></td></tr>
<tr class="separator:a245cbde8d8059a46690bd3b32b1cf903"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:ab46981329f5742120fa33286bf048801"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_data_point_element.html">IDataPointElement</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#ab46981329f5742120fa33286bf048801">SampledPointElement</a> = new <a class="el" href="class_vect_sharp_1_1_plots_1_1_path_data_point_element.html">PathDataPointElement</a>()<code> [get, set]</code></td></tr>
<tr class="memdesc:ab46981329f5742120fa33286bf048801"><td class="mdescLeft">&#160;</td><td class="mdescRight">The symbol to draw at the sampled points.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#ab46981329f5742120fa33286bf048801">More...</a><br /></td></tr>
<tr class="separator:ab46981329f5742120fa33286bf048801"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13fac011844e0224ea133de7ff1ea2da"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a13fac011844e0224ea133de7ff1ea2da">RasterResolutionX</a> = 512<code> [get, set]</code></td></tr>
<tr class="memdesc:a13fac011844e0224ea133de7ff1ea2da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resolution on the X axis for the rasterised tesselation.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a13fac011844e0224ea133de7ff1ea2da">More...</a><br /></td></tr>
<tr class="separator:a13fac011844e0224ea133de7ff1ea2da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bb34ee2455b0e75ea33c549cbabe369"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a9bb34ee2455b0e75ea33c549cbabe369">RasterResolutionY</a> = 512<code> [get, set]</code></td></tr>
<tr class="memdesc:a9bb34ee2455b0e75ea33c549cbabe369"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resolution on the Y axis for the rasterised tesselation.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a9bb34ee2455b0e75ea33c549cbabe369">More...</a><br /></td></tr>
<tr class="separator:a9bb34ee2455b0e75ea33c549cbabe369"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1903c55003701c824660b29b2e73239c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html">Function2DGrid</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a1903c55003701c824660b29b2e73239c">Function</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a1903c55003701c824660b29b2e73239c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function to plot.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a1903c55003701c824660b29b2e73239c">More...</a><br /></td></tr>
<tr class="separator:a1903c55003701c824660b29b2e73239c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d5c6e697c454221de376412dad94276"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a92e7e5a1b16806e2575473fd772ffc61">PlotType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a2d5c6e697c454221de376412dad94276">Type</a> = PlotType.SampledPoints<code> [get, set]</code></td></tr>
<tr class="memdesc:a2d5c6e697c454221de376412dad94276"><td class="mdescLeft">&#160;</td><td class="mdescRight">The kind of plot that is produced.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a2d5c6e697c454221de376412dad94276">More...</a><br /></td></tr>
<tr class="separator:a2d5c6e697c454221de376412dad94276"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b0b42d6383a1a80de2b21c6d3d112d9"><td class="memItemLeft" align="right" valign="top">Func&lt; double, <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a7b0b42d6383a1a80de2b21c6d3d112d9">Colouring</a> = x =&gt; { x = Math.Max(0, Math.Min(1, x)); return <a class="el" href="struct_vect_sharp_1_1_colour.html#a80787f39829f01b38291bb429214d6ae">Colour.FromRgb</a>(x, x, x); }<code> [get, set]</code></td></tr>
<tr class="memdesc:a7b0b42d6383a1a80de2b21c6d3d112d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">A function associating sampled function values to a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>. You should set this to a function accepting a single <code>double</code> argument ranging between 0 and 1, and returning the corresponding colour. The default value returns black 0 and white for 1.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a7b0b42d6383a1a80de2b21c6d3d112d9">More...</a><br /></td></tr>
<tr class="separator:a7b0b42d6383a1a80de2b21c6d3d112d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab070e59a7d65f8451617d7aaeea3981e"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#ab070e59a7d65f8451617d7aaeea3981e">Tag</a><code> [get, set]</code></td></tr>
<tr class="memdesc:ab070e59a7d65f8451617d7aaeea3981e"><td class="mdescLeft">&#160;</td><td class="mdescRight">A tag to identify the function in the plot.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#ab070e59a7d65f8451617d7aaeea3981e">More...</a><br /></td></tr>
<tr class="separator:ab070e59a7d65f8451617d7aaeea3981e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af531a1f309eeececc3dc4d6198dcd210"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_continuous_invertible_coordinate_system.html">IContinuousInvertibleCoordinateSystem</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#af531a1f309eeececc3dc4d6198dcd210">CoordinateSystem</a><code> [get, set]</code></td></tr>
<tr class="memdesc:af531a1f309eeececc3dc4d6198dcd210"><td class="mdescLeft">&#160;</td><td class="mdescRight">The coordinate system used to transform the points from data space to plot space.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d.html#af531a1f309eeececc3dc4d6198dcd210">More...</a><br /></td></tr>
<tr class="separator:af531a1f309eeececc3dc4d6198dcd210"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_vect_sharp_1_1_plots_1_1_i_plot_element"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_vect_sharp_1_1_plots_1_1_i_plot_element')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_plot_element.html">VectSharp.Plots.IPlotElement</a></td></tr>
<tr class="memitem:a1f27e4aba8d0ea33df7cd25a74bd8909 inherit properties_interface_vect_sharp_1_1_plots_1_1_i_plot_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_coordinate_system.html">ICoordinateSystem</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_plot_element.html#a1f27e4aba8d0ea33df7cd25a74bd8909">CoordinateSystem</a><code> [get]</code></td></tr>
<tr class="memdesc:a1f27e4aba8d0ea33df7cd25a74bd8909 inherit properties_interface_vect_sharp_1_1_plots_1_1_i_plot_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">The coordinate system used to transform the points from data space to plot space.   <a href="interface_vect_sharp_1_1_plots_1_1_i_plot_element.html#a1f27e4aba8d0ea33df7cd25a74bd8909">More...</a><br /></td></tr>
<tr class="separator:a1f27e4aba8d0ea33df7cd25a74bd8909 inherit properties_interface_vect_sharp_1_1_plots_1_1_i_plot_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >A plot element that plots a function of two variables.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00520">520</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a92e7e5a1b16806e2575473fd772ffc61" name="a92e7e5a1b16806e2575473fd772ffc61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92e7e5a1b16806e2575473fd772ffc61">&#9670;&#160;</a></span>PlotType</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a92e7e5a1b16806e2575473fd772ffc61">VectSharp.Plots.Function2D.PlotType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Describes the kind of plots that can be produced.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00525">525</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac0f1065ddd45511d4ebd8dcbb7ea14b0" name="ac0f1065ddd45511d4ebd8dcbb7ea14b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0f1065ddd45511d4ebd8dcbb7ea14b0">&#9670;&#160;</a></span>Function2D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.Plots.Function2D.Function2D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html">Function2DGrid</a>&#160;</td>
          <td class="paramname"><em>function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_continuous_invertible_coordinate_system.html">IContinuousInvertibleCoordinateSystem</a>&#160;</td>
          <td class="paramname"><em>coordinateSystem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html" title="A plot element that plots a function of two variables.">Function2D</a> instance.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">function</td><td>The function to plot.</td></tr>
    <tr><td class="paramname">coordinateSystem</td><td>The coordinate system used to transform the points from data space to plot space.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00594">594</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ad0f3cfa2f0a882b2a17d27ac67d67435" name="ad0f3cfa2f0a882b2a17d27ac67d67435"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0f3cfa2f0a882b2a17d27ac67d67435">&#9670;&#160;</a></span>Plot()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsafe void VectSharp.Plots.Function2D.Plot </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_graphics.html">Graphics</a>&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draw the plot element on the specified <em>target</em> &amp;#160;<a class="el" href="class_vect_sharp_1_1_graphics.html" title="Represents an abstract drawing surface.">Graphics</a>. <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>The <a class="el" href="class_vect_sharp_1_1_graphics.html" title="Represents an abstract drawing surface.">Graphics</a> on which to draw.</td></tr>
  </table>
  </dd>
</dl>
 </p>

<p>Implements <a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_plot_element.html#a245cbde8d8059a46690bd3b32b1cf903">VectSharp.Plots.IPlotElement</a>.</p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00601">601</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a7b0b42d6383a1a80de2b21c6d3d112d9" name="a7b0b42d6383a1a80de2b21c6d3d112d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b0b42d6383a1a80de2b21c6d3d112d9">&#9670;&#160;</a></span>Colouring</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Func&lt;double, <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&gt; VectSharp.Plots.Function2D.Colouring = x =&gt; { x = Math.Max(0, Math.Min(1, x)); return <a class="el" href="struct_vect_sharp_1_1_colour.html#a80787f39829f01b38291bb429214d6ae">Colour.FromRgb</a>(x, x, x); }</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A function associating sampled function values to a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>. You should set this to a function accepting a single <code>double</code> argument ranging between 0 and 1, and returning the corresponding colour. The default value returns black 0 and white for 1.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00576">576</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="af531a1f309eeececc3dc4d6198dcd210" name="af531a1f309eeececc3dc4d6198dcd210"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af531a1f309eeececc3dc4d6198dcd210">&#9670;&#160;</a></span>CoordinateSystem</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_continuous_invertible_coordinate_system.html">IContinuousInvertibleCoordinateSystem</a> VectSharp.Plots.Function2D.CoordinateSystem</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The coordinate system used to transform the points from data space to plot space.  </p>

<p>Implements <a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_plot_element.html#a1f27e4aba8d0ea33df7cd25a74bd8909">VectSharp.Plots.IPlotElement</a>.</p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00586">586</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="a1903c55003701c824660b29b2e73239c" name="a1903c55003701c824660b29b2e73239c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1903c55003701c824660b29b2e73239c">&#9670;&#160;</a></span>Function</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html">Function2DGrid</a> VectSharp.Plots.Function2D.Function</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The function to plot.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00564">564</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="a13fac011844e0224ea133de7ff1ea2da" name="a13fac011844e0224ea133de7ff1ea2da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13fac011844e0224ea133de7ff1ea2da">&#9670;&#160;</a></span>RasterResolutionX</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int VectSharp.Plots.Function2D.RasterResolutionX = 512</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Resolution on the X axis for the rasterised tesselation.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00554">554</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="a9bb34ee2455b0e75ea33c549cbabe369" name="a9bb34ee2455b0e75ea33c549cbabe369"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9bb34ee2455b0e75ea33c549cbabe369">&#9670;&#160;</a></span>RasterResolutionY</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int VectSharp.Plots.Function2D.RasterResolutionY = 512</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Resolution on the Y axis for the rasterised tesselation.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00559">559</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="ab46981329f5742120fa33286bf048801" name="ab46981329f5742120fa33286bf048801"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab46981329f5742120fa33286bf048801">&#9670;&#160;</a></span>SampledPointElement</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interface_vect_sharp_1_1_plots_1_1_i_data_point_element.html">IDataPointElement</a> VectSharp.Plots.Function2D.SampledPointElement = new <a class="el" href="class_vect_sharp_1_1_plots_1_1_path_data_point_element.html">PathDataPointElement</a>()</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The symbol to draw at the sampled points.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00549">549</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="ab070e59a7d65f8451617d7aaeea3981e" name="ab070e59a7d65f8451617d7aaeea3981e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab070e59a7d65f8451617d7aaeea3981e">&#9670;&#160;</a></span>Tag</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string VectSharp.Plots.Function2D.Tag</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A tag to identify the function in the plot.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00581">581</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="a2d5c6e697c454221de376412dad94276" name="a2d5c6e697c454221de376412dad94276"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d5c6e697c454221de376412dad94276">&#9670;&#160;</a></span>Type</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html#a92e7e5a1b16806e2575473fd772ffc61">PlotType</a> VectSharp.Plots.Function2D.Type = PlotType.SampledPoints</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The kind of plot that is produced.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00569">569</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>VectSharp.Plots/<a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="namespace_vect_sharp_1_1_plots.html">Plots</a></li><li class="navelem"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d.html">Function2D</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
